"; echo ""; ?> "; echo "\"*\"/
"; echo "ERROR! cannot connect to database

"; echo "This error happens usually when backing up the database, please be patient, The site will be up any minute

"; echo "THANK YOU VERY MUCH"; echo "

"; echo xhtmlfoot(); exit(); } $brws = explode("/",$_SERVER['HTTP_USER_AGENT']); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { $pstyle = gettheme1("1"); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "\"x\"/
"; echo "This IP address is blocked
"; echo "
"; echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time() ; $rmsg = gettimemsg($remain); echo "Time to unblock the IP: $rmsg

"; echo "

"; echo "

"; echo "

"; echo "Username:

"; echo "Password:

"; echo ""; echo "
"; echo "

"; echo xhtmlfoot(); exit(); } } if(($action != "") && ($action!="terms")) { $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "You are not logged in
"; echo "Or Your session has been expired

"; echo "Login"; echo "

"; echo xhtmlfoot(); exit(); } } //echo isbanned($uid); if(isbanned($uid)) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "\"x\"/
"; echo "You are Banned
"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time() ; $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg

"; echo "Ban Reason: $banres[0]"; //echo "Login"; echo "

"; echo xhtmlfoot(); exit(); } $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); ////////////////////////////////////////MAIN PAGE if($action=="main") { $showicons = mysql_fetch_array(mysql_query("SELECT showicon FROM ibwf_users WHERE id='".$uid."'")); $showtime = mysql_fetch_array(mysql_query("SELECT showtime FROM ibwf_users WHERE id='".$uid."'")); $showshout = mysql_fetch_array(mysql_query("SELECT showshout FROM ibwf_users WHERE id='".$uid."'")); $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); if($showicons[0]=="1"){ addvisitor(); addonline(getuid_sid($sid),"Main Page - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; if($showtime[0]=="1"){ echo "".date("D d M y - H:i",time() )."
"; } $TimeZone="0"; ////Change the TimeZone accordingly! $New_Time = time() + ($TimeZone * 60 * 60); $show_date=date("D dS F, Y",$New_Time); $show_time=date("H:i",$New_Time); $Hour=date("G",$New_Time); echo "\"FlareZone\"/
"; echo "

"; $nick = getnick_sid($sid); if ($Hour <= 4) { echo "
Hello $nick you night owl!

"; } else if ($Hour <= 11) { echo "
Good morning $nick!

"; } else if ($Hour <= 12) { echo "
Enjoy your lunch $nick!

"; } else if ($Hour <= 17) { echo "
Good afternoon $nick!

"; } else if ($Hour <= 24) { echo "
Good Evening $nick!

"; } echo "

"; $fmsg = htmlspecialchars(getfmsg()); echo "Site Announcement
"; echo "$fmsg
"; echo "+++++++++++++++++
"; include("popups.php"); echo "
REFRESH
"; echo "

"; echo "
"; echo "
Menu

"; echo ""; /////inbox data $new_gm = getnewgml(getuid_sid($sid)); if($new_gm>0) { echo "»G-Mail(".$new_gm.")
"; } $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg==1) { echo "1. \"*\"/Inbox($umsg New Message)
"; } if($umsg>1) { echo "1. \"*\"/Inbox($umsg New Messages)
"; } if($umsg==0) { echo "1. \"*\"/Inbox($tmsg)
"; } $uid = getuid_sid($sid); $mybuds = getnbuds($uid); $onbuds = getonbuds($uid); echo "2. \"*\"/Buddies($onbuds|$mybuds)"; $reqs = getnreqs($uid); if($reqs>0) { echo ": $reqs"; } $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline")); echo "
3. \"*\"/Chatrooms($chs[0])
"; echo "4. \"*\"/Forums
"; $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); echo "5. \"*\"/Clubs($chs[0])
"; echo "6. \"*\"/Fun/Games
"; echo "7. \"*\"/FlareZone Shop
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault")); echo "8. \"*\"/Downloads($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery")); echo "9. \"*\"/User Gallery($noi[0])
"; echo "10. \"*\"/CPanel
"; echo "11. \"*\"/Site Stats
"; echo "12. \"*\"/Partners
"; echo "
"; echo "
"; if($showshout[0]=="1"){ echo "
"; echo "
"; echo "
"; echo "
ShoutBox

"; echo ""; echo getshoutbox($sid); echo ""; echo "
"; } echo "
"; echo "
"; echo "
"; echo "
Online Stats

"; echo ""; $memberonline = "0.Members: ".getnumonline().""; echo "$memberonline"; $timeout = time() - 180; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'")); echo "*.Staff: ".$noi[0].""; $timeout = time() - 180; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'")); echo "#.V.I.P's: ".$noi[0].""; echo ""; echo "
"; echo "
"; echo "
"; echo "

"; if (isowner(getuid_sid($sid))) { echo "

"; echo "
Owner/Admins/Mods

"; echo "»Owner CP
"; } if (isadmin(getuid_sid($sid))) { echo "»Admin CP
"; } if(ismod($uid)) { echo "»Mod R/L
"; echo "
I Would Apreciate It If Only Staff Click These Links

"; echo "
"; } echo "

"; echo "
"; echo "
"; echo "

"; echo "©FlareZone 2007 - 2023
"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"; echo "Original Script By Irishblaze(lavalair.net)
"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"; echo "Script Updates By FlareBoy
"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"; echo "Switch To Compact Mode
"; echo "

"; echo xhtmlfoot(); }else if($showicons[0]=="0"){ addvisitor(); addonline(getuid_sid($sid),"Main Page - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; if($showtime[0]=="1"){ echo "".date("D d M y - H:i",time() )."
"; } $TimeZone="0"; ////Change the TimeZone accordingly! $New_Time = time() + ($TimeZone * 60 * 60); $show_date=date("D dS F, Y",$New_Time); $show_time=date("H:i",$New_Time); $Hour=date("G",$New_Time); echo "\"FlareZone\"/
"; echo "

"; $nick = getnick_sid($sid); if ($Hour <= 4) { echo "
Hello $nick you night owl!

"; } else if ($Hour <= 11) { echo "
Good morning $nick!

"; } else if ($Hour <= 12) { echo "
Enjoy your lunch $nick!

"; } else if ($Hour <= 17) { echo "
Good afternoon $nick!

"; } else if ($Hour <= 24) { echo "
Good Evening $nick!

"; } echo "

"; $fmsg = htmlspecialchars(getfmsg()); echo "$fmsg
"; echo "

"; echo "
"; echo "
Menu

"; echo ""; /////inbox data $new_gm = getnewgml(getuid_sid($sid)); if($new_gm>0) { echo "»G-Mail(".$new_gm.")
"; } $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg==1) { echo "»Inbox($umsg New Message)
"; } if($umsg>1) { echo "»Inbox($umsg New Messages)
"; } if($umsg==0) { echo "»Inbox($tmsg)
"; } $uid = getuid_sid($sid); $mybuds = getnbuds($uid); $onbuds = getonbuds($uid); echo "»Buddies($onbuds|$mybuds)"; $reqs = getnreqs($uid); if($reqs>0) { echo ": $reqs"; } $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline")); echo "
»Chatrooms($chs[0])
"; echo "»Forums
"; $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); echo "»Clubs($chs[0])
"; echo "»Fun/Games
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault")); echo "»Downloads($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery")); echo "»User Gallery($noi[0])
"; echo "»CPanel
"; echo "»Site Stats
"; echo "»Partners(2)
"; echo "
"; echo "
"; if($showshout[0]=="1"){ echo "
"; echo "
"; echo "
"; echo "
ShoutBox

"; echo ""; echo getshoutbox($sid); echo ""; echo "
"; } echo "
"; echo "
"; echo "
"; echo "
Online Stats

"; echo ""; $memberonline = "Members Online: ".getnumonline()."
"; echo "$memberonline"; $timeout = time() - 180; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'")); echo "Staff Online: ".$noi[0]."
"; $timeout = time() - 180; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'")); echo "V.I.P's Online: ".$noi[0]."
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "

"; if (isadmin(getuid_sid($sid))) { echo "»Admin CP
"; } if(ismod($uid)) { $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported='1'")); $tot = $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported='1'")); $tot += $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported='1'")); $tot += $tnor[0]; $tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog")); $tol = $tnol[0]; if($tol+$tot>0) { echo "»Mod R/L($tot|$tol)
"; } } echo "

"; echo "
"; echo "
"; echo "

"; echo "© FlareZone 2007-2010
"; echo "WML Version
"; echo "Log Out"; echo "

"; echo xhtmlfoot(); } } else if($action=="clmop") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Moderate Member",$pstyle); echo "

"; $whnick = getnick_uid($who); echo "$whnick"; echo "

"; echo "

"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "»Kick $whnick out
"; echo "»$whnick's Club Points
"; echo "»Give $whnick Credits
"; }else{ echo "\"X\"/Missing Info!"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="gcp") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Moderate Member",$pstyle); echo "

"; $whnick = getnick_uid($who); echo "$whnick"; echo "

"; echo "

"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "

"; echo "Action:
"; echo "Points:
"; echo ""; echo "
"; }else{ echo "\"X\"/Missing Info!"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="gpl") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Moderate Member",$pstyle); echo "

"; $whnick = getnick_uid($who); echo "$whnick"; echo "

"; echo "

"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "\"!\"/You can only give Credits, these are real Credits, you can't subtract Credits
"; $cpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_clubs WHERE id='".$clid."'")); echo "\"!\"/Your club credits is $cpl[0]
"; echo "\"!\"/Do not abuse the giving of Credits, your club could be deleted

"; echo "

"; echo "Credits:
"; echo ""; echo "
"; }else{ echo "\"X\"/Missing Info!"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////Control Panel else if($action=="cpanel") { addonline(getuid_sid($sid),"Control Panel - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Control Panel",$pstyle); echo "

"; echo "\"CPanel\"/
"; include("popups.php"); echo "

"; echo "
Control Panel

"; echo "

"; echo "

"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg==1) { echo "»Inbox($umsg New Message)
"; } if($umsg>1) { echo "»Inbox($umsg New Messages)
"; } if($umsg==0) { echo "»Inbox($tmsg)
"; } $uid =getuid_sid($sid); //$new_gm = getnewgml($uid); echo "»FlareZone ID card.
"; echo "»My Clubs
"; echo "»Profile
"; echo "»User Settings
"; echo "»Profile Settings
"; echo "»Site Settings
"; echo "»Personal Wap site
"; echo "»Search
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$uid."'")); echo "»My Vault($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'")); echo "»Ignore List($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$uid."'")); echo "»Guestbook($noi[0])
"; echo "»My Poll
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$uid."'")); echo "»Blogs($noi[0])
"; echo "»Chatmood
"; echo "»Status
"; echo "»Smilies
"; echo "»Avatars
"; echo "»E-Cards
"; echo "»BBCode
"; echo "»F.A.Qs
"; echo "»Help Menu
"; echo "»Terms of use
"; echo "

"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////Control Panel else if($action=="clmenu") { addonline(getuid_sid($sid),"Clubs Menu - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Clubs Menu",$pstyle); echo "

"; echo "

"; echo "
Clubs Menu

"; echo "

"; echo "

"; $myid = getuid_sid($sid); echo "»All Clubs
"; echo "»My Clubs
"; echo "»Clubs I'm member of
"; echo "»Clubs By popularity
"; echo "»Clubs By Activity
"; //echo "»5 random clubs

"; $ncl = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_clubs ORDER BY created DESC LIMIT 1")); echo "Newest Club: ".htmlspecialchars($ncl[1])."
"; /* echo "»Settings
"; echo "»Extended Settings
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$uid."'")); echo "»My Vault($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'")); echo "»Ignore List($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$uid."'")); echo "»Guestbook($noi[0])
"; echo "»My Poll
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$uid."'")); echo "»Blogs($noi[0])
"; echo "»Chatmood
"; echo "»Smilies
"; echo "»Avatars
"; echo "»BBCode
"; echo "

"; */ echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="rwidc") { addonline(getuid_sid($sid),"FlareZone ID - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("FlareZone ID",$pstyle); echo "

"; echo "

"; echo "
FlareZone ID Card

"; $uid = getuid_sid($sid); echo "\"M

"; echo "This ID card is updated automatically everytime someone request it, the source to your card is http://FlareZone.com/rwidc.php?id=$uid

"; echo "you can use it as an avatar in other sites

"; echo "To look at others cards view the user profile then go to more information>FlareZone ID card."; echo "
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////My Clubs else if($action=="myclub") { addonline(getuid_sid($sid),"My Clubs - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("My Clubs",$pstyle); echo "

"; include("popups.php"); echo "

"; echo "
My Clubs

"; echo "

"; echo "

"; $uid = getuid_sid($sid); if(getplusses($uid)<500) { echo "Clubs are small communities that users can create, every community should have things in common, for example a community for goths, blink 182 fans, rappers and anythin g you can think of, currently people who have more than 500 Credits only can create clubs, every user can create up to 5 clubs, to get Credits post in forms, or invite friends"; }else{ $uclubs = mysql_query("SELECT id, name FROM ibwf_clubs WHERE owner='".$uid."'"); while($club=mysql_fetch_array($uclubs)) { echo "$club[1]"; echo ", [DELETE]

"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."'")); if($noi[0]<5) { echo "Add Club"; } } echo "

"; echo "
"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////My Clubs else if($action=="clubs") { addonline(getuid_sid($sid),"Clubs List - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Clubs List",$pstyle); echo "

"; echo "Clubs List"; echo "

"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); $num_items = $noi[0]; //changable $items_per_page= 5; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; //changable sql $sql = "SELECT id, name, owner, description, created FROM ibwf_clubs ORDER BY created DESC LIMIT $limit_start, $items_per_page"; echo "

"; $items = mysql_query($sql); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $item[1]=htmlspecialchars($item[1]); $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$item[0]."' AND accepted='1'")); $lnk = "$item[1]($mems[0]) Owner: ".getnick_uid($item[2]).""; echo "$lnk
"; echo htmlspecialchars($item[3])."
Creation Date: (".date("d/m/y", $item[4]).")


"; } } echo "

"; echo "

"; if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { $rets = "

"; $rets .= "Jump to page"; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= "
"; echo $rets; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="gocl") { $clid = $_GET["clid"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); addonline(getuid_sid($sid),"Viewing Club - xHTML",""); $clnm = htmlspecialchars($clinfo[0]); $pstyle = gettheme($sid); echo xhtmlhead($clnm,$pstyle); echo "

"; echo "$clnm
"; if(trim($clinfo[4])=="") { echo "\"logo\"/"; }else{ echo "\"logo\"/"; } echo "

"; echo "

"; echo "Club ID: $clid
"; $uid = getuid_sid($sid); $cango = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND uid='".$uid."' AND accepted='1'")); echo "Owner: ".getnick_uid($clinfo[1])."
"; $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'")); echo "Members: $mems[0]
"; echo "Created On: ".date("d/m/y", $clinfo[6])."
"; echo "Credits: $clinfo[5]
"; $fid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_forums WHERE clubid='".$clid."'")); $rid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_rooms WHERE clubid='".$clid."'")); $tps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$fid[0]."'")); $pss = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid='".$fid[0]."'")); if(($cango[0]>0)||ismod($uid)) { $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_announcements WHERE clid='".$clid."'")); echo "
\"!\"/Announcements($noa[0])
"; $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid='".$rid[0]."'")); echo "\"*\"/$clnm Chat($noa[0])
"; echo "\"*\"/$clnm Forum($tps[0]/$pss[0])

"; $ismem = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND uid='".getuid_sid($sid)."'")); if($ismem[0]>0) { //unjoin if($clinfo[1]!=$uid) { echo "Unjoin Club"; } }else{ echo "Join Now!"; } if(isadmin(getuid_sid($sid))) { echo "
Admin Tools"; } if($clinfo[1]==$uid) { //club owner $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='0'")); echo "
»Requests($mems[0])
"; } }else{ echo "Topics: $tps[0], Posts: $pss[0]
"; echo "Description:
"; echo htmlspecialchars($clinfo[2]); echo "

"; echo "Rules:
"; echo htmlspecialchars($clinfo[3]); echo "

"; echo "Seems Good? Join Now!"; } echo "

"; echo "

"; echo ""; echo "Clubs list
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="addcl") { addonline(getuid_sid($sid),"Adding Club - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Add Club",$pstyle); echo "

"; echo "Add Club"; echo "

"; echo "

"; if(getplusses($uid)>=500) { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."'")); if($noi[0]<5) { echo "\"*\"/All Info are required except the logo
"; echo "\"*\"/Beside you, mods can moderate your club forums and chat
"; echo "\"*\"/Any leading spaces for description, name, logo, or rules will be removed
"; echo "\"*\"/Admins will delete your club and subtract your Credits if you abuse the using of the club
"; echo "\"*\"/Admins have the right to delete your club if it want active or if it was useless

"; echo "

"; echo "Club Name:
"; echo "Description:
"; echo "Rules:
"; echo "Logo:
"; echo ""; echo "
"; }else{ echo "You already have 5 clubs"; } }else{ echo "You cant add clubs"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////Search else if($action=="search") { addonline(getuid_sid($sid),"Search Menu - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Search Menu",$pstyle); echo "

"; echo "\"*\"/
"; include("popups.php"); echo "Search Menu"; echo "

"; echo "

"; echo "»In Topics
"; echo "»In Blogs
"; echo "»In My Inbox
"; echo "»In Clubs

"; echo "Find Members:
"; echo "»In Nicknames
"; //echo "»In Location
"; //echo "»By sex orientation
"; echo "More search options for members are to come
"; echo "
or you can just type the nickname of the member and view its profile
"; echo "

"; echo "
Nickname
"; echo "
"; echo "
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////Settings else if($action=="uset") { addonline(getuid_sid($sid),"User Settings - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("User Settings",$pstyle); echo ""; $uid = getuid_sid($sid); $avat = getavatar($uid); $email = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$uid."'")); $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$uid."'")); $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'")); $stats = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$uid."'")); $stats2 = mysql_fetch_array(mysql_query("SELECT stats2 FROM ibwf_users WHERE id='".$uid."'")); $referal = mysql_fetch_array(mysql_query("SELECT referal FROM ibwf_users WHERE id='".$uid."'")); $langz = mysql_fetch_array(mysql_query("SELECT langz FROM ibwf_users WHERE id='".$uid."'")); $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$uid."'")); $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$uid."'")); $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$uid."'")); $uloc[0] = htmlspecialchars($uloc[0]); echo " "; echo ""; echo "

"; include("popups.php"); echo "Settings"; echo "

"; echo "

"; echo "

"; echo "Avatar:
"; echo "E-Mail:
"; echo "Site:
"; echo "Birthday(YYYY-MM-DD):
"; echo "Location:
"; echo "
"; echo "Online Status:
"; echo "Signature:
"; echo "
"; echo "Martial Status:
"; echo "Language:
"; echo "Referal:
"; echo "Sex:
"; echo "
"; echo "
"; echo "

"; $sml = mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'")); if($sml[0]=="1") { echo "Disable Smilies"; }else{ echo "Enable Smilies"; } echo "

"; echo "
"; echo "Password:
"; echo "Password again:
"; echo "
"; echo "
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////Site Settings else if($action=="stset") { addonline(getuid_sid($sid),"Site Settings - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Site Settings",$pstyle); echo "

"; include("popups.php"); echo "Site View Settings"; echo "

"; echo "

"; echo "

"; $uid = getuid_sid($sid); $showcons = mysql_fetch_array(mysql_query("SELECT showicon FROM ibwf_users WHERE id='".$uid."'")); $showtime = mysql_fetch_array(mysql_query("SELECT showtime FROM ibwf_users WHERE id='".$uid."'")); $showshout = mysql_fetch_array(mysql_query("SELECT showshout FROM ibwf_users WHERE id='".$uid."'")); $theme = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); echo "Theme:

"; echo "Show Icons on Main Page?:

"; echo "Show Time on Main Page?:

"; echo "Show Shoutbox on Main Page?:

"; echo "
"; echo "
"; echo "

"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////////Poll Topic else if($action=="poll") { addonline(getuid_sid($sid),"Administrating Poll - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Your Poll",$pstyle); echo "

"; $uid = getuid_sid($sid); if(getplusses($uid)<50) { echo "Minimum Credits required to administrate your poll is 50 credits"; }else{ $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_users WHERE id='".$uid."'")); if($pid[0] == 0) { echo "Create Poll"; }else{ echo "View Your Poll
"; echo "Delete Your Poll
"; } } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); }else if($action=="crpoll") { addonline(getuid_sid($sid),"Creating Poll - xHTML",""); echo ""; echo "

"; if(getplusses(getuid_sid($sid))>=50) { $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_users WHERE id='".$uid."'")); if($pid[0] == 0) { echo "

"; echo "Question:
"; echo "Option 1:
"; echo "Option 2:
"; echo "Option 3:
"; echo "Option 4:
"; echo "Option 5:
"; echo ""; echo "
"; }else{ echo "\"x\"/You already have a poll"; } }else{ echo "\"x\"/You should have at least 50 Credits to create a poll"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="pws") { addonline(getuid_sid($sid),"P.W.S - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("P.W.S",$pstyle); echo "

"; echo "»Welcome Image
"; echo "The image on main page
"; echo "In Image field: type smilie code for smilie like -hi-, the image URL for external image, leave blank for other options

"; echo "

"; echo "
"; echo "Image:

"; echo "»Welcome Message
"; echo "The message that appears on first page of your site, smilies are allowed
"; echo "Message:

"; echo "»Theme
"; echo "Themes available only on phones supporting XHTML
"; echo "
"; echo "
"; echo "
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="pltpc") { $tid = $_GET["tid"]; addonline(getuid_sid($sid),"Creating Poll - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Create Poll",$pstyle); echo "

"; if((getplusses(getuid_sid($sid))>=500)||ismod($uid)) { $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_topics WHERE id='".$tid."'")); if($pid[0] == 0) { echo "

"; echo "Question:
"; echo "Option 1:
"; echo "Option 2:
"; echo "Option 3:
"; echo "Option 4:
"; echo "Option 5:
"; echo "
"; echo "
"; }else{ echo "\"x\"/The topic already have a poll"; } }else{ echo "\"x\"/You should have at least 500 Credits to create a poll"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="stats") { addonline(getuid_sid($sid),"Site statistics - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Site Statistics",$pstyle); echo "

"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users")); echo ""; $siteage = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='9'")); $sage = time()-$siteage[0]; $stage = ceil($sage/(24*60*60)); echo "

"; echo "
Site Statistics

"; include("popups.php"); echo "Site Age: $stage Days

"; echo "Registered Members: $norm[0]
"; $memid = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_users ORDER BY regdate DESC LIMIT 0,1")); echo "The Newest Member is: $memid[1]

"; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); echo "Most online: $mols[1] Members on $mols[0]
"; $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); echo "
Most online(today only): $mols[0] Members at $mols[1]
"; $tm24 = time() - (24*60*60) ; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$tm24."'")); echo mysql_error(); echo "
Active users today $aut[0]
"; $notc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics")); $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts")); echo "Number of Topics: $notc[0]
"; echo "Number of Posts: $nops[0]
"; $nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private")); echo "Number of PMs: $nopm[0]
"; $nopm = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='Counter'")); echo "Counter: $nopm[0]

"; echo "
"; echo "
"; echo "

"; echo "

"; echo ""; ///// echo "

"; echo "
General Stats

"; echo "»What happend in the last 24 hours?
"; echo "»Members($norm[0])
"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE sex='M'")); echo "--»Males($norm[0])
"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE sex='F'")); echo "--»Females($norm[0])
"; echo "
"; echo "
"; echo "
Fun Stats

"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs")); echo "»Blogs($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE pollid>'0'")); echo "»Polls($noi[0])
"; $nobr=mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT browserm) FROM ibwf_users WHERE browserm IS NOT NULL ")); echo "»Browsers($nobr[0])
"; echo "
"; echo "
"; echo "
Members Toplist

"; echo "»FlareZone Millionaires
"; echo "»FlareZone Prince and Princess
"; echo "»FlareZone Quiz Masters
"; echo "»Most Credits
"; echo "»Top Posters
"; echo "»Top Chatters
"; echo "»Top Battlers
"; echo "»Top Shouters
"; echo "»Top Themes
"; echo "
"; echo "
"; echo "
Permission Stats

"; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE perm>'0'")); echo "»Staff Members($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE specialid>'0'")); echo "»V.I.P Members($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_judges")); echo "»Battles Judges($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='1' OR penalty='2'")); echo "
"; echo "
"; echo "
Other Stats

"; $tbday=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate());")); echo "»Today's Birthday($tbday[0])
"; echo "»Banned($noi[0])
"; if(ismod(getuid_sid($sid))) { $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='0'")); echo "»Trashed($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='2'")); echo "»Banned IPs($noi[0])
"; echo "
"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="l24") { addonline(getuid_sid($sid),"24 Hour statistics - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("24 Hour Statistics",$pstyle); echo "

"; echo ""; ///// include("popups.php"); echo "Things happened in FlareZone in the last 24 hours

"; $tm24 = time() - (24*60*60) ; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$tm24."'")); echo "Active Members: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE regdate>'".$tm24."'")); echo "Registered Members: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bgdate>'".$tm24."'")); echo "Blogs Created: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE joined>'".$tm24."' AND accepted='1'")); echo "Members Joined Clubs: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE created>'".$tm24."'")); echo "Clubs Created: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_buddies WHERE reqdt>'".$tm24."' AND agreed='1'")); echo "Buddies Added: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE dtime>'".$tm24."'")); echo "Guestbooks Signed: $aut[0]
"; if(ismod(getuid_sid($sid))){ $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog WHERE actdt>'".$tm24."'")); echo "ModLog Actions: $aut[0]
"; } $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_polls WHERE pdt>'".$tm24."'")); echo "Polls Added: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE dtpost>'".$tm24."'")); echo "Posts: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE timesent>'".$tm24."'")); echo "PMs Sent: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts WHERE shtime>'".$tm24."'")); echo "Shouts: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE crdate>'".$tm24."'")); echo "Topics Created: $aut[0]
"; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE pudt>'".$tm24."'")); echo "Vault Items Added: $aut[0]
;"; echo "

"; echo "

"; echo "\"*\"/"; echo "Statistics
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////View category else if($action=="viewcat") { $cid = $_GET["cid"]; addonline(getuid_sid($sid),"Viewing Category - xHTML",""); $cinfo = mysql_fetch_array(mysql_query("SELECT name from ibwf_fcats WHERE id='".$cid."'")); $pstyle = gettheme($sid); echo xhtmlhead($cinfo[0],$pstyle); echo "

"; $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$cid."' AND clubid='0' ORDER BY position, id, name"); echo ""; while($forum = mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid), $forum[0])) { $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'")); $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid='".$forum[0]."'")); $iml = "\"*\"/"; echo "$iml$forum[1]($notp[0]/$nops[0])
"; $lpt = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_topics WHERE fid='".$forum[0]."' ORDER BY lastpost DESC LIMIT 0,1")); $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$lpt[0]."'")); if($nops[0]==0) { $pinfo = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics WHERE id='".$lpt[0]."'")); $tluid = $pinfo[0]; }else{ $pinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_posts WHERE tid='".$lpt[0]."' ORDER BY dtpost DESC LIMIT 0, 1")); $tluid = $pinfo[0]; } $tlnm = htmlspecialchars($lpt[1]); $tlnick = getnick_uid($tluid); $tpclnk = "$tlnm"; $vulnk = "$tlnick"; echo "Last Post: $tpclnk, BY: $vulnk

"; } } echo "
"; echo "

"; echo "

"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg>0) { echo "Inbox($umsg/$tmsg)
"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////View Topic else if($action=="viewtpc") { addonline(getuid_sid($sid),"Viewing Topic - xHTML",""); $tid = $_GET["tid"]; $go = $_GET["go"]; $tfid = mysql_fetch_array(mysql_query("SELECT fid FROM ibwf_topics WHERE id='".$tid."'")); if(!canaccess(getuid_sid($sid), $tfid[0])) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "You Don't Have A Permission To View The Contents Of This Forum

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } $tinfo = mysql_fetch_array(mysql_query("SELECT name, text, authorid, crdate, views, fid, pollid from ibwf_topics WHERE id='".$tid."'")); $tnm = htmlspecialchars($tinfo[0]); $pstyle = gettheme($sid); echo xhtmlhead($tnm,$pstyle); echo "

"; $num_pages = getnumpages($tid); if($page==""||$page<1)$page=1; if($go!="")$page=getpage_go($go,$tid); $posts_per_page = 5; if($page>$num_pages)$page=$num_pages; $limit_start = $posts_per_page *($page-1); echo "Post reply"; $lastlink = "Last Page"; $firstlink = "First Page "; $golink = ""; if($page>1) { $golink = $firstlink; } if($page<$num_pages) { $golink .= $lastlink; } if($golink !="") { echo "
$golink"; } echo "

"; echo "

"; $vws = $tinfo[4]+1; $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$tid."'")); echo "Replies: $rpls[0] - Views: $vws
"; echo "

"; echo "

"; ///fm here if($page==1) { $posts_per_page=4; mysql_query("UPDATE ibwf_topics SET views='".$vws."' WHERE id='".$tid."'"); $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ibwf_topics WHERE id='".$tid."'")); $unick = getnick_uid($ttext[0]); if(isonline($ttext[0])) { $iml = "\"+\"/"; }else{ $iml = "\"-\"/"; } $usl = "
$iml$unick"; $topt = "*"; if($go==$tid) { $fli = "\"!\"/"; }else{ $fli =""; } $pst = parsemsg($ttext[1],$sid); $dtot = date("d/m/y - H:i:s",$ttext[2]); echo "$usl: $dtot
$fli$pst $topt
"; if($ttext[3]>0) { echo "POLL
"; } } if($page>1) { $limit_start--; } $sql = "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page"; $posts = mysql_query($sql); while($post = mysql_fetch_array($posts)) { $unick = getnick_uid($post[2]); if(isonline($post[2])) { $iml = "\"+\"/"; }else{ $iml = "\"-\"/"; } $usl = "
$iml$unick"; $pst = parsemsg($post[1], $sid); $topt = "*"; if($post[4]>0) { $qtl = "(quote:p=blaze,d=16-04-2006)"; } if($go==$post[0]) { $fli = "\"!\"/"; }else{ $fli =""; } $dtot = date("d/m/y - H:i:s",$post[3]); echo "$usl: $dtot
$fli$pst $topt
"; } ///to here echo "

"; echo "

"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg>0) { echo "Inbox($umsg/$tmsg)
"; } if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { $rets = "

"; $rets .= "Jump to page"; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= "
"; echo $rets; } echo "
"; echo "Post reply"; echo "

"; echo "

"; $fid = $tinfo[5]; $fname = getfname($fid); $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'")); $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'")); $cname = $cinfo[0]; echo ""; echo "Home>"; echo ""; echo "Forums>"; $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'")); if($cid[0]>0) { $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'")); $cname = htmlspecialchars($cinfo[0]); echo ""; echo "$cname
"; }else{ $cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ibwf_forums WHERE id='".$fid."'")); $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id='".$cid[0]."'")); $cname = htmlspecialchars($cinfo[0]); echo ""; echo "$cname Club
"; } $fname = htmlspecialchars($fname); echo ">$fname>$tnm"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////View Forum else if($action=="viewfrm") { $fid = $_GET["fid"]; $view = $_GET["view"]; if(!canaccess(getuid_sid($sid), $fid)) { addonline(getuid_sid($sid),"Lost in forums - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "You Don't Have A Permission To View The Contents Of This Forum

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } addonline(getuid_sid($sid),"Viewing Forum - xHTML",""); $finfo = mysql_fetch_array(mysql_query("SELECT name from ibwf_forums WHERE id='".$fid."'")); $fnm = htmlspecialchars($finfo[0]); $pstyle = gettheme($sid); echo xhtmlhead($fnm,$pstyle); echo "

"; $norf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rss WHERE fid='".$fid."'")); if($norf[0]>0) { echo "\"rss\"/$finfo[0] Extras
"; } echo "New Topic
"; echo "

"; echo "View: "; echo ""; echo ""; echo ""; echo "
"; echo "
"; if($view=="new") { echo "Viewing topics that has new posts since your last visit"; }else if($view=="myps") { echo "Viewing topics contain posts by you"; }else { echo "Viewing All topics"; } echo "

"; echo "

"; echo ""; if($page=="" || $page<=0)$page=1; if($page==1) { ///////////pinned topics $topics = mysql_query("SELECT id, name, closed, views, pollid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='1' ORDER BY lastpost DESC, name, id LIMIT 0,5"); while($topic = mysql_fetch_array($topics)) { $iml = "\"*\"/"; $iml = "*"; $atxt =""; if($topic[2]=='1') { //closed $atxt = "(X)"; } if($topic[4]>0) { $pltx = "(P)"; }else{ $pltx = ""; } $tnm = htmlspecialchars($topic[1]); $nop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$topic[0]."'")); echo "$iml$pltx$tnm($nop[0])$atxt
"; } echo "
"; } $uid = getuid_sid($sid); if($view=="new") { $ulv = mysql_fetch_array(mysql_query("SELECT lastvst FROM ibwf_users WHERE id='".$uid."'")); $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$fid."' AND pinned='0' AND lastpost >='".$ulv[0]."'")); } else if($view=="myps") { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT a.id) FROM ibwf_topics a INNER JOIN ibwf_posts b ON a.id = b.tid WHERE a.fid='".$fid."' AND a.pinned='0' AND b.uid='".$uid."'")); } else{ $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$fid."' AND pinned='0'")); } $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($limit_start<0)$limit_start=0; if($view=="new") { $ulv = mysql_fetch_array(mysql_query("SELECT lastvst FROM ibwf_users WHERE id='".$uid."'")); $topics = mysql_query("SELECT id, name, closed, views, moved, pollid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='0' AND lastpost >='".$ulv[0]."' ORDER BY lastpost DESC, name, id LIMIT $limit_start, $items_per_page"); } else if($view=="myps"){ $topics = mysql_query("SELECT a.id, a.name, a.closed, a.views, a.moved, a.pollid FROM ibwf_topics a INNER JOIN ibwf_posts b ON a.id = b.tid WHERE a.fid='".$fid."' AND a.pinned='0' AND b.uid='".$uid."' GROUP BY a.id ORDER BY a.lastpost DESC, a.name, a.id LIMIT $limit_start, $items_per_page"); } else{ $topics = mysql_query("SELECT id, name, closed, views, moved, pollid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='0' ORDER BY lastpost DESC, name, id LIMIT $limit_start, $items_per_page"); } while($topic = mysql_fetch_array($topics)) { $nop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$topic[0]."'")); $iml = "\"*\"/"; if($nop[0]>24) { $iml = "\"*\"/"; } if($topic[4]=='1') { $iml = "\"*\"/"; } if($topic[2]=='1') { $iml = "\"*\"/"; } if($topic[5]>0) { $iml = "\"*\"/"; } $atxt =""; if($topic[2]=='1') { //closed $atxt = "(X)"; } $tnm = htmlspecialchars($topic[1]); echo "$iml$tnm($nop[0])$atxt
"; } echo "
"; echo "

"; echo "

"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg>0) { echo "Inbox($umsg/$tmsg)
"; } if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { $rets = "

"; $rets .= "Jump to page: "; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= "
"; echo $rets; } echo "

New Topic
"; $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'")); if($cid[0]>0) { $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'")); $cname = htmlspecialchars($cinfo[0]); echo ""; echo "$cname
"; }else{ $cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ibwf_forums WHERE id='".$fid."'")); $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id='".$cid[0]."'")); $cname = htmlspecialchars($cinfo[0]); echo ""; echo "$cname Club
"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////ONLINE USERS else if($action=="newtopic") { $fid = $_GET["fid"]; if(!canaccess(getuid_sid($sid), $fid)) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "You Don't Have A Permission To View The Contents Of This Forum

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } addonline(getuid_sid($sid),"Creating new topic - xHTML","index.php?action=online"); $pstyle = gettheme($sid); echo xhtmlhead("New Topic",$pstyle); echo "

"; echo "

"; echo "Title:
"; echo "Text:
"; echo ""; echo "
"; echo "
"; echo "

"; $fname = getfname($fid); echo "$fname
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////Post reply else if($action=="post") { $tid = $_GET["tid"]; $tfid = mysql_fetch_array(mysql_query("SELECT fid FROM ibwf_topics WHERE id='".$tid."'")); $fid = $tfid[0]; if(!canaccess(getuid_sid($sid), $fid)) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "You Don't Have A Permission To View The Contents Of This Forum

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } addonline(getuid_sid($sid),"Posting reply - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Post Reply",$pstyle); echo ""; echo " "; echo ""; $qut = $_GET["qut"]; echo "

"; echo "

"; echo "Text:
"; echo ""; echo ""; echo "
"; echo "
"; $fid = getfid($tid); $fname = getfname($fid); echo "

"; echo "Back to topic"; echo "
"; echo "$fname
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////shout else if($action=="shout") { addonline(getuid_sid($sid),"Shouting - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Shout",$pstyle); echo "

"; if(getplusses(getuid_sid($sid))<75) { echo "You should have at least 75 Credits to shout!"; }else{ echo "

"; echo "Text:
"; echo "
"; echo "
"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////shout else if($action=="annc") { addonline(getuid_sid($sid),"Announcing! - xHTML",""); $clid = $_GET["clid"]; $pstyle = gettheme($sid); echo xhtmlhead("Announce!",$pstyle); echo "

"; $cow = mysql_fetch_array(mysql_query("SELECT owner FROM ibwf_clubs WHERE id='".$clid."'")); $uid = getuid_sid($sid); if($cow[0]!=$uid) { echo "This club is not yours!"; }else{ echo "

"; echo "Text:
"; echo "
"; echo "
"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////Guestbook else if($action=="addblg") { if(!getplusses(getuid_sid($sid))>50) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "At least you should have 50 Credits to add a blog

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } addonline(getuid_sid($sid),"Adding a blog - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Add Blog",$pstyle); echo ""; echo " "; echo ""; echo "

"; echo "

"; echo "Title:
"; echo "Text:
"; echo "
"; echo "
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////add vault else if($action=="addvlt") { if(!getplusses(getuid_sid($sid))>25) { $pstyle = gettheme($sid); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo "At least you should have 25 Credits to add an item to your vault

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } addonline(getuid_sid($sid),"Adding a vault item - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Add Vault Item",$pstyle); echo ""; echo " "; echo ""; echo "

"; echo "The vault is used to store your downloadable links,like images, mp3's, games etc...
WARNING: if you used it to wapsites links they will got deleted and you'll lose some Credits, if you used it for ranking sites links like 2wap, mradar, you'll be banned


"; echo "

"; echo "Item Name:
"; echo "Item Url:
"; echo "
"; echo "
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////Guestbook else if($action=="signgb") { $who=$_GET["who"]; addonline(getuid_sid($sid),"Signing a guestbook - xHTML",""); if(!cansigngb(getuid_sid($sid), $who)) { $pstyle = gettheme($sid); echo xhtmlhead("Sign a Guestbook",$pstyle); echo "

"; echo "You cant Sign this user guestbook

"; echo "Home"; echo "

"; echo xhtmlfoot(); exit(); } $pstyle = gettheme($sid); echo xhtmlhead("Sign Guestbook",$pstyle); echo ""; echo " "; echo ""; echo "

"; echo "

"; echo "Text:
"; echo ""; echo "
"; echo "
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="online") { addonline(getuid_sid($sid),"Online List - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Online List",$pstyle); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; //changable sql $sql = "SELECT a.name, b.place, b.userid, sex FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; echo "

"; include("popups.php"); $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); print "Most online: $mols[1]
"; $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); print "Most online today only: $mols[0]
"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { if ($item[3]=="M"){ $icon = "\"M\"/"; }else if ($item[3]=="F"){ $icon = "\"F\"/"; } $lnk = "$item[0]"; echo "$icon $lnk - $item[1]
"; } echo "

"; echo "

"; if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "

"; ////// UNTILL HERE >> echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="viewpl") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Viewing a poll - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("View A Poll",$pstyle); echo "

"; $uid = getuid_sid($sid); $pollid = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_users WHERE id='".$who."'")); if($pollid[0]>0) { $polli = mysql_fetch_array(mysql_query("SELECT id, pqst, opt1, opt2, opt3, opt4, opt5, pdt FROM ibwf_polls WHERE id='".$pollid[0]."'")); if(trim($polli[1])!="") { $qst = parsepm($polli[1], $sid); echo $qst."

"; $vdone = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE uid='".$uid."' AND pid='".$pollid[0]."'")); $nov = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."'")); $nov = $nov[0]; if($vdone[0]>0) { $voted= true; }else{ $voted = false; } $opt1 = $polli[2]; if (trim($opt1)!="") { $opt1 = htmlspecialchars($opt1); $nov1 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='1'")); $nov1 = $nov1[0]; if($nov>0) { $per = floor(($nov1/$nov)*100); $rests = "Votes: $nov1($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "1.$opt1 $rests
"; }else{ $lnk = "1.$opt1 $rests
"; } echo "$lnk"; } $opt2 = $polli[3]; if (trim($opt2)!="") { $opt2 = htmlspecialchars($opt2); $nov2 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='2'")); $nov2 = $nov2[0]; if($nov>0) { $per = floor(($nov2/$nov)*100); $rests = "Votes: $nov2($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "2.$opt2 $rests
"; }else{ $lnk = "2.$opt2 $rests
"; } echo "$lnk"; } $opt3 = $polli[4]; if (trim($opt3)!="") { $opt3 = htmlspecialchars($opt3); $nov3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='3'")); $nov3 = $nov3[0]; if($nov>0) { $per = floor(($nov3/$nov)*100); $rests = "Votes: $nov3($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "3.$opt3 $rests
"; }else{ $lnk = "3.$opt3 $rests
"; } echo "$lnk"; } $opt4 = $polli[5]; if (trim($opt4)!="") { $opt4 = htmlspecialchars($opt4); $nov4 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='4'")); $nov4 = $nov4[0]; if($nov>0) { $per = floor(($nov4/$nov)*100); $rests = "Votes: $nov4($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "4.$opt4 $rests
"; }else{ $lnk = "4.$opt4 $rests
"; } echo "$lnk"; } $opt5 = $polli[6]; if (trim($opt5)!="") { $opt5 = htmlspecialchars($opt5); $nov5 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='5'")); $nov5 = $nov5[0]; if($nov>0) { $per = floor(($nov5/$nov)*100); $rests = "Votes: $nov5($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "5.$opt5 $rests
"; }else{ $lnk = "5.$opt5 $rests
"; } echo "$lnk"; } echo "".date("d m y - H:i",$polli[7]).""; }else{ echo "\"x\"/This poll doesn't exist"; } }else{ echo "\"x\"/This user have no poll"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="viewtpl") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Viewing a poll - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("View A Poll",$pstyle); echo "

"; $uid = getuid_sid($sid); $pollid = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_topics WHERE id='".$who."'")); if($pollid[0]>0) { $polli = mysql_fetch_array(mysql_query("SELECT id, pqst, opt1, opt2, opt3, opt4, opt5, pdt FROM ibwf_polls WHERE id='".$pollid[0]."'")); if(trim($polli[1])!="") { $qst = parsepm($polli[1], $sid); echo $qst."

"; $vdone = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE uid='".$uid."' AND pid='".$pollid[0]."'")); $nov = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."'")); $nov = $nov[0]; if($vdone[0]>0) { $voted= true; }else{ $voted = false; } $opt1 = $polli[2]; if (trim($opt1)!="") { $opt1 = htmlspecialchars($opt1); $nov1 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='1'")); $nov1 = $nov1[0]; if($nov>0) { $per = floor(($nov1/$nov)*100); $rests = "Votes: $nov1($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "1.$opt1 $rests
"; }else{ $lnk = "1.$opt1 $rests
"; } echo "$lnk"; } $opt2 = $polli[3]; if (trim($opt2)!="") { $opt2 = htmlspecialchars($opt2); $nov2 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='2'")); $nov2 = $nov2[0]; if($nov>0) { $per = floor(($nov2/$nov)*100); $rests = "Votes: $nov2($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "2.$opt2 $rests
"; }else{ $lnk = "2.$opt2 $rests
"; } echo "$lnk"; } $opt3 = $polli[4]; if (trim($opt3)!="") { $opt3 = htmlspecialchars($opt3); $nov3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='3'")); $nov3 = $nov3[0]; if($nov>0) { $per = floor(($nov3/$nov)*100); $rests = "Votes: $nov3($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "3.$opt3 $rests
"; }else{ $lnk = "3.$opt3 $rests
"; } echo "$lnk"; } $opt4 = $polli[5]; if (trim($opt4)!="") { $opt4 = htmlspecialchars($opt4); $nov4 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='4'")); $nov4 = $nov4[0]; if($nov>0) { $per = floor(($nov4/$nov)*100); $rests = "Votes: $nov4($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "4.$opt4 $rests
"; }else{ $lnk = "4.$opt4 $rests
"; } echo "$lnk"; } $opt5 = $polli[6]; if (trim($opt5)!="") { $opt5 = htmlspecialchars($opt5); $nov5 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_presults WHERE pid='".$pollid[0]."' AND ans='5'")); $nov5 = $nov5[0]; if($nov>0) { $per = floor(($nov5/$nov)*100); $rests = "Votes: $nov5($per%)"; }else{ $rests = "Votes: 0(0%)"; } if($voted) { $lnk = "5.$opt5 $rests
"; }else{ $lnk = "5.$opt5 $rests
"; } echo "$lnk"; } echo "".date("d m y - H:i",$polli[7]).""; }else{ echo "\"x\"/This poll doesn't exist"; } }else{ echo "\"x\"/This user have no poll"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="stfol") { addonline(getuid_sid($sid),"Staff online list - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Staff Online",$pstyle); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $timeout = 180; $timeon = time() - $timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'")); $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($limit_start<0)$limit_start=0; //changable sql $sql = " SELECT name, perm, id FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."' LIMIT $limit_start, $items_per_page "; echo "

"; include("popups.php"); $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "$item[0]"; if($item[1]==1) { $item[1] = "Moderator!"; $icon = "\"M\"/"; } else if($item[1]==2) { $item[1] = "Admin!"; $icon = "\"A\"/"; } else if($item[1]==3) { $item[1] = "Owner!"; $icon = "\"O\"/"; } echo "$icon $lnk - $item[1]
"; } echo "

"; echo "

"; if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "

"; ////// UNTILL HERE >> echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////VIP Online Begin else if($action=="vipol") { addonline(getuid_sid($sid),"V.I.P online list - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("V.I.P's Online",$pstyle); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $timeout = 180; $timeon = time() - $timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeon."'")); $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($limit_start<0)$limit_start=0; //changable sql $sql = "SELECT name, specialid, id FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeon."' LIMIT $limit_start, $items_per_page"; echo "

"; include("popups.php"); $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "$item[0]"; if($item[1]=='1') { $tit = "FlareZone Millionaire!"; } if($item[1]=='2') { $tit = "FlareZone Quiz Master!"; } if($item[1]=='8') { $tit = "FlareZone Prince!"; } if($item[1]=='9') { $tit = "FlareZone Princess!"; } echo "$lnk - $tit
"; } echo "

"; echo "

"; if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "

"; ////// UNTILL HERE >> echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////VIP ONLINE END else if($action=="chbmsg") { addonline(getuid_sid($sid),"Buddy Message - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Buddy Message",$pstyle); echo ""; $cmsg = htmlspecialchars(getbudmsg(getuid_sid($sid))); echo " "; echo ""; echo "

"; echo "

"; echo "Text:
"; echo ""; echo "
"; echo "
"; echo "

"; echo ""; echo "Buddies List
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } /////////////////////////////////viewuser profile else if($action=="viewuser") { $whonick = getnick_uid($who); addonline(getuid_sid($sid),"Viewing $whonick's Profile",""); $pstyle = gettheme($sid); echo xhtmlhead($whonick." Profile",$pstyle); echo "

"; if($who==""||$who==0) { $mnick = $_POST["mnick"]; $who = getuid_nick($mnick); } $whonick = getnick_uid($who); if($whonick!="") { echo "$whonick's Profile
"; include("popups.php"); echo ""; echo "Send PM

"; echo "Send PoP Up MSG

"; if(cansee(getuid_sid($sid), $who)) { $unol = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$who."'")); if($unol[0]!="") { echo "Last Penalty Reason: $unol[0]
"; } $unol = mysql_fetch_array(mysql_query("SELECT lastplreas FROM ibwf_users WHERE id='".$who."'")); if($unol[0]!="") { echo "Last Credits Reason: $unol[0]
"; } echo ""; } $uid = getuid_sid($sid); if(budres($uid, $who)==0) { echo "Add to buddy list
"; } $ires = ignoreres($uid, $who); if(es==2) { echo "Remove From Ignore list
"; }else if($ires==1) { echo "Add to Ignore list
"; } echo "Fun and Games
"; $avlink = getavatar($who); if ($avlink=="") { echo "
\"avatar\"/"; }else{ echo "
\"avatar\"/"; } echo "
"; echo "

"; echo "

"; echo ""; echo "Member's ID: $who
"; echo "Status: ".getstatus($who)."
"; $nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM ibwf_users WHERE id='".$who."'")); $uage = getage($nopl[1]); if($nopl[0]=='M') { $usex = "Male"; }else if($nopl[0]=='F'){ $usex = "Female"; }else{ $usex = "Shemale"; } $nopl[2] = htmlspecialchars($nopl[2]); echo "A/S/L: $uage/$usex/$nopl[2]
"; $staters2 = mysql_fetch_array(mysql_query("SELECT stats2 FROM ibwf_users WHERE id='".$who."'")); $stats2 = parsepm($staters2[0], $sid); echo "Online Status: $stats2
"; $staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'")); $stats = parsepm($staters[0], $sid); echo "Martial Status: $stats
"; $unol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE authorid='".$who."'")); $tlink = "$unol[0]"; echo "Topics: $tlink
"; $unop = mysql_fetch_array(mysql_query("SELECT posts FROM ibwf_users WHERE id='".$who."'")); $unol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE uid='".$who."'")); $plink = "$unol[0]"; echo "Posts: $plink/$unop[0]
"; $noin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."'")); $nout = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE byuid='".$who."'")); echo "PMs IN: $noin[0] - OUT: $nout[0]
"; $nopl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'")); echo "Credits: $nopl[0]
"; $nopl = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$who."'")); echo "Chat Posts: $nopl[0]
"; $nopl = mysql_fetch_array(mysql_query("SELECT battlep FROM ibwf_users WHERE id='".$who."'")); echo "Battle Points: $nopl[0]
"; $judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".$who."'")); if($judg[0]>0) { echo "Battle Board Judge
"; } $nout = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts WHERE shouter='".$who."'")); $nopl = mysql_fetch_array(mysql_query("SELECT shouts FROM ibwf_users WHERE id='".$who."'")); echo "Shouts: $nout[0]/$nopl[0]
"; $nopl = mysql_fetch_array(mysql_query("SELECT regdate FROM ibwf_users WHERE id='".$who."'")); $jdt = date("d m y-H:i:s",$nopl[0]); echo "Joined FlareZone: $jdt
"; $nopl = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$who."'")); $jdt = date("d m y-H:i:s",$nopl[0]); echo "Last Active: $jdt
"; $nopl = mysql_fetch_array(mysql_query("SELECT lastvst FROM ibwf_users WHERE id='".$who."'")); $jdt = date("d m y-H:i:s",$nopl[0]); echo "Last Visit: $jdt
"; $nopl = mysql_fetch_array(mysql_query("SELECT browserm FROM ibwf_users WHERE id='".$who."'")); echo "Browser: $nopl[0]
"; $langs = mysql_fetch_array(mysql_query("SELECT langz FROM ibwf_users WHERE id='".$who."'")); $langz = parsepm($langs[0], $sid); echo "Language: $langz
"; $nopl = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'")); echo "E-mail: $nopl[0]
"; $referals = mysql_fetch_array(mysql_query("SELECT referal FROM ibwf_users WHERE id='".$who."'")); $referal = parsepm($referals[0], $sid); echo "FlareZone Referal: $referal
"; $nopl = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$who."'")); $nopl[0] = strtolower($nopl[0]); echo "Site: $nopl[0]
"; $nopl = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'")); $sign = parsepm($nopl[0], $sid); echo "Signature: $sign
"; if(ismod(getuid_sid($sid))) { $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'")); echo "IP:$uipadd[0]
"; $nob = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_buddies WHERE (uid='".$who."' OR tid='".$who."') AND agreed='1'")); echo "Buddies: $nob[0]
"; } echo "
More Information
"; echo "$whonick's Personal Wap Site

"; echo "
"; echo "

"; echo "

"; $noi = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_users WHERE id='".$who."'")); if($noi[0]>0) { echo "Poll
"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$who."'")); if($noi[0]>0) { echo "Clubs($noi[0])
"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."'")); if($noi[0]>0) { echo "Member In $noi[0] Clubs
"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$who."'")); if($noi[0]>0) { echo "Blogs($noi[0])
"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'")); if($noi[0]>0) { echo "Vault($noi[0])
"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'")); echo "Guestbook($noi[0])
"; $judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".getuid_sid($sid)."'")); if(ismod(getuid_sid($sid))||$judg[0]>0) { echo "Battle Points
"; } if(ismod(getuid_sid($sid))) { echo "Mod CP
"; } }else{ echo "\"X\"/ Member dos not exist
"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "
\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ////////////////////////////////////////// uxset else if($action=="uxset") { addonline(getuid_sid($sid),"Extended Settings - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Extended Settings",$pstyle); echo "

"; echo "»My Address
"; echo "»Personality
"; //echo "»Gmail Settings
"; echo "»More about me
"; echo "»Preferences
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////User Address else if($action=="uadd") { addonline(getuid_sid($sid),"My Address - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("My Address",$pstyle); echo ""; $ainfo = mysql_fetch_array(mysql_query("SELECT country, city, street, phoneno, timezone FROM ibwf_xinfo WHERE uid='".getuid_sid($sid)."'")); echo " "; echo ""; echo "

"; echo "\"!\"/Go to Preferences and choose buddies only if you want only your buddies to see your street and phone number
"; echo "\"!\"/If you don't anyone to see these information just don't type them
"; echo "\"!\"/Timezone is required to get your e-mails from G-Mail account in your local time.
"; echo "\"!\"/Example on timezone is 2 for +2 hours on GMT, or -2.5 for -2:30 on GMT
"; echo "\"!\"/These info. will help you to meet friends and dates from where do you live

"; echo "

"; echo "Contry:
"; echo "City:
"; echo "Street:
"; echo "Timezone(e.g +2 or -2.5):
"; echo "Phone No.:
"; echo "
"; echo "
"; echo "

"; echo "

"; echo ""; echo "Extended Settings
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////User Preferences else if($action=="upre") { addonline(getuid_sid($sid),"Preferences - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Preferences",$pstyle); echo ""; $ainfo = mysql_fetch_array(mysql_query("SELECT sitedscr, budsonly, sexpre FROM ibwf_xinfo WHERE uid='".getuid_sid($sid)."'")); echo " "; echo ""; echo "

"; echo "\"!\"/Your site already set in your normal settings
"; echo "\"!\"/Set buddies only to yes, so only your buddies can see your phone number, street, and real name
"; echo "\"!\"/Sex preference will help the correct people to find you

"; if($theme[0]=="1"){ echo ""; }else{ echo ""; } echo "

"; echo "Site description:
"; echo "Buddies Only:"; echo ""; echo "
Sex Preference:"; echo ""; echo "

"; echo "
"; echo "

"; echo "

"; echo ""; echo "Extended Settings
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////User Personaliy else if($action=="uper") { addonline(getuid_sid($sid),"Personality - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Personality",$pstyle); echo ""; $ainfo = mysql_fetch_array(mysql_query("SELECT height, weight, realname, racerel, eyescolor, profession, hairtype FROM ibwf_xinfo WHERE uid='".getuid_sid($sid)."'")); echo " "; echo ""; echo "

"; echo "

"; echo "Height:
"; echo "Weight:
"; echo "Real Name:
"; echo "Ethnic Origin:
"; echo "Eyes:
"; echo "Hair:
"; echo "Profession:
"; echo "
"; echo "
"; echo "

"; echo "

"; echo ""; echo "Extended Settings
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////User Personaliy else if($action=="umin") { addonline(getuid_sid($sid),"More About Me - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("More About Me",$pstyle); echo ""; $ainfo = mysql_fetch_array(mysql_query("SELECT likes, deslikes, habitsb, habitsg, favsport, favmusic, moretext FROM ibwf_xinfo WHERE uid='".getuid_sid($sid)."'")); echo " "; echo ""; echo "

"; echo "

"; echo "Likes:
"; echo "Dislikes:
"; echo "Bad Habbits:
"; echo "Good Habbits:
"; echo "Favorite Sports:
"; echo "Favorite Music:
"; echo "More Text:
"; echo "
"; echo "
"; echo "

"; echo "

"; echo ""; echo "Extended Settings
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////G-Mail Settings else if($action=="gmset") { addonline(getuid_sid($sid),"GMail Settings - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("GMail Settings",$pstyle); echo ""; $ainfo = mysql_fetch_array(mysql_query("SELECT gmailun, gmailpw, gmailchk FROM ibwf_xinfo WHERE uid='".getuid_sid($sid)."'")); echo " "; echo ""; echo "

"; echo "\"!\"/Set these values only if you want to be auto-logged in your gmail account
"; echo "\"!\"/Put in the checking field the time you want ravingwap to check your g-mail account
"; echo "\"!\"/Putting less than 20 minutes could slow your navigation throw ravingwap, suggested period is 30 minutes
"; echo "\"!\"/Valid values 0 - 99 minutes, 0 will check your e-mail with every action you make in ravingwap

"; echo ' G-Mail Username:
G-Mail Password:
G-Mail Checking:
'; echo "Submit"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "

"; echo "

"; echo ""; echo "Extended Settings
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////Give Game Plusses else if($action=="givegp") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Giving GPs - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Give GPs",$pstyle); echo ""; echo " "; echo ""; echo "

"; echo "Give GPs To ".getnick_uid($who)."

"; $gps = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".getuid_sid($sid)."'")); echo "You have $gps[0] GP's

"; echo "GP's to give
"; echo ""; echo "
Give"; echo ""; echo ""; echo ""; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////Give Battle points else if($action=="batp") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Giving Battle Points - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Give BP",$pstyle); echo ""; echo " "; echo ""; echo "

"; $judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".getuid_sid($sid)."'")); if(ismod(getuid_sid($sid))||$judg[0]>0) { echo "Give/Take BPs To ".getnick_uid($who)."

"; echo ""; echo "
Add"; echo ""; echo ""; echo ""; echo "
"; echo "Remove"; echo ""; echo ""; echo ""; echo "

"; }else{ echo "You Can't Do This"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "

\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } //////////////////////////////////////////Post Options else if($action=="pstopt") { $pid = $_GET["pid"]; $page = $_GET["page"]; $fid = $_GET["fid"]; addonline(getuid_sid($sid),"Post Options - xHTML",""); $pinfo= mysql_fetch_array(mysql_query("SELECT uid,tid, text FROM ibwf_posts WHERE id='".$pid."'")); $trid = $pinfo[0]; $tid = $pinfo[1]; $ptext = htmlspecialchars($pinfo[2]); $pstyle = gettheme($sid); echo xhtmlhead("Post Options",$pstyle); echo ""; echo " "; echo ""; echo "

"; echo "Post Options"; echo "

"; echo "

"; $trnick = getnick_uid($trid); echo "»Send PM to $trnick
"; echo "»View $trnick's Profile
"; //echo "»Quote
"; echo "»Report
"; echo "«Back to topic

"; if(ismod(getuid_sid($sid))) { echo "

"; echo "Text: "; echo "
"; echo "
"; echo "
»DELETE
"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="tpcopt") { $tid = $_GET["tid"]; addonline(getuid_sid($sid),"Topic Options - xHTML",""); $tinfo= mysql_fetch_array(mysql_query("SELECT name,fid, authorid, text, pinned, closed FROM ibwf_topics WHERE id='".$tid."'")); $trid = $tinfo[2]; $ttext = htmlspecialchars($tinfo[3]); $tname = htmlspecialchars($tinfo[0]); $pstyle = gettheme($sid); echo xhtmlhead("Topic Options",$pstyle); echo ""; echo " "; echo ""; echo "

"; echo "Topic Options"; echo "

"; echo "

"; echo "Topic ID: $tid
"; $trnick = getnick_uid($trid); echo "»Send PM to $trnick
"; echo "»View $trnick's Profile
"; //echo "»Quote
"; $plid = mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_topics WHERE id='".$tid."'")); if($plid[0]==0) { if(ismod($uid)) { echo "»Add Poll
"; } }else{ if(ismod($uid)) { echo "»Delete Poll
"; } } echo "»Report
"; echo "«Back to topic
"; if(ismod(getuid_sid($sid))) { echo "

"; echo "
Title: "; echo "

"; echo "
"; echo "
"; echo "
Text: "; echo "

"; echo "
"; echo "»DELETE
"; echo "
"; if($tinfo[5]=='1') { $ctxt = "Open"; $cact = "0"; }else{ $ctxt = "Close"; $cact = "1"; } echo "»$ctxt
"; if($tinfo[4]=='1') { $ptxt = "Unpin"; $pact = "0"; }else{ $ptxt = "Pin"; $pact = "1"; } echo "»$ptxt
"; //echo "»Quote
"; echo "
Move to:
"; echo "
"; $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE clubid='0'"); echo "
"; echo "
"; echo "
"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if ($action=="chat") { addonline(getuid_sid($sid),"Chat Menu - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Chat Menu",$pstyle); echo "

"; include("popups.php"); echo "\"*\"/
"; echo "
"; $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".getuid_sid($sid)."'")); $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".getuid_sid($sid)."'")); $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")"; echo "Inbox$unrd

"; echo "Users Rooms

"; $rooms = mysql_query("SELECT id, name, perms, mage, chposts FROM ibwf_rooms WHERE static='1' AND clubid='0'"); while ($room= mysql_fetch_array($rooms)) { if(canenter($room[0], $sid)) { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE rid='".$room[0]."'")); echo "$room[1]($noi[0])
"; } } echo "
\"*\"/Home
"; echo "

"; echo xhtmlfoot(); } else if ($action=="uchat") { addonline(getuid_sid($sid),"Chat Menu - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Chat Menu",$pstyle); echo "

"; include("popups.php"); echo "\"*\"/
"; echo "
"; $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".getuid_sid($sid)."'")); $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".getuid_sid($sid)."'")); $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")"; echo "Inbox$unrd

"; echo "Public Rooms
"; echo "Create Room

"; $rooms = mysql_query("SELECT id, name, pass FROM ibwf_rooms WHERE static='0'"); $co=0; while ($room= mysql_fetch_array($rooms)) { $co++; if(canenter($room[0], $sid)) { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE rid='".$room[0]."'")); if($room[2]=="") { echo "".htmlspecialchars($room[1])."($noi[0])
"; }else{ echo "

"; echo ""; echo htmlspecialchars($room[1]); echo "($noi[0])"; echo ""; echo ""; echo ""; echo ""; echo "
"; } } } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "
\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if($action=="mkroom") { addonline(getuid_sid($sid),"Creating Chatroom - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Creating Room",$pstyle); echo "

"; echo "\"!\"/Leave password empty if you dont want to lock the room
"; echo "\"!\"/Don't make the password too personal, it's visible in the database

"; echo "Room Name:
"; echo "Password:
"; echo "Create"; echo ""; echo ""; echo ""; echo ""; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/Chatrooms
"; echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if ($action=="formmenu") { addonline(getuid_sid($sid),"Forum Index - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("FlareZone Forums",$pstyle); echo "

"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg==1) { echo "Inbox($umsg New Message)

"; } if($umsg>1) { echo "Inbox($umsg New Messages)

"; } echo "

"; echo "

"; echo "

"; echo "
Forum Menu

"; include("popups.php"); $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id"); $iml = "\"*\"/"; while($fcat=mysql_fetch_array($fcats)) { $catlink = "$iml$fcat[1]
"; echo "$catlink"; $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name"); if(getfview()==0) { echo "
"; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) { echo "$forum[1], "; } } echo ""; }else if(getfview()==20) { echo "
"; echo "
Forums: "; $rets .= ""; $rets .= ""; echo "
"; echo "
"; echo "
"; } } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "
\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if ($action=="funm") { addonline(getuid_sid($sid),"Fun/Games Menu - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Fun/Games Menu",$pstyle); echo "

"; include("popups.php"); echo "\"*\"/
"; echo "Hello, so you want to play some games and have fun? well you came into the right place"; echo "

"; echo "

"; echo "Just For Fun
"; echo "»FlareZone BOT
"; echo "»Hangman
"; echo "»Fortune Cookie
"; echo "Win Some Credits
"; echo "»Guess The Number
"; echo "»Casino
"; echo "»Lotto
"; echo "Meet New Friends
"; echo "»Mix a Buddy
"; echo "»Mix a Guy (For Girls Only)
"; echo "»Mix a Girl (For Guys Only)
"; //echo "»Dares Box
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } else if ($action=="partners") { addonline(getuid_sid($sid),"Partner List - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Partners",$pstyle); echo "

"; include("popups.php"); echo "FlareZone Partners

"; echo "

"; echo "

"; echo "FlareZone
"; echo "Playtoy
"; echo "Farad
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "
\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } ///////////////////////////////view blog else if($action=="viewblog") { $bid = $_GET["bid"]; addonline(getuid_sid($sid),"Viewing Blog - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("View Blog",$pstyle); echo "

"; $pminfo = mysql_fetch_array(mysql_query("SELECT btext, bname, bgdate,bowner, id FROM ibwf_blogs WHERE id='".$bid."'")); $bttl = htmlspecialchars($pminfo[1]); $btxt = parsemsg($pminfo[0], $sid); $bnick = getnick_uid($pminfo[3]); $vbbl = "$bnick
"; echo "Club ID: $bid
"; echo "$bttl by: $vbbl
"; echo "$btxt
"; $tmstamp = $pminfo[2]; $tmdt = date("d m y - h:i:s", $tmstamp); echo "$tmdt

"; $vb = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_brate WHERE uid='".$uid."' AND blogid='".$bid."'")); if($vb[0]==0) { echo "
"; echo "Rate"; echo ""; echo ""; echo ""; }else{ $rinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) as nofr, SUM(brate) as nofp FROM ibwf_brate WHERE blogid='".$bid."'")); $ther = $rinfo[1]/$rinfo[0]; echo "Rate: $ther - Points: $rinfo[1]"; } echo "

"; echo "

"; echo "Back to Blogs
"; $bnick = getnick_uid($pminfo[3]); echo "Back to $bnick's Blogs
"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } /////////////////////////////////ADMIN CP else if($action=="admincp") { addonline(getuid_sid($sid),"Admin CP - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Admin CP!",$pstyle); echo "

"; include("popups.php"); echo "Admin CP"; echo "

"; echo "

"; if(isadmin(getuid_sid($sid))) { echo "»Forum Categories
"; echo "»Forums
"; echo "»User groups
"; echo "»Manage RSS Sources
"; echo "»Add Theme
"; echo "»Add Smilies
"; echo "»Add Avatar
"; echo "»Chatrooms
"; if($uid==1) { echo "»Clear Data
"; } }else{ echo "You are not an Admin"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } /////////////////////////////////OWNER CP else if($action=="ownercp") { addonline(getuid_sid($sid),"Owner CP - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Owner CP!",$pstyle); echo "

"; include("popups.php"); echo "owner CP"; echo "

"; echo "

"; if(isowner(getuid_sid($sid))) { echo "»General Settings
"; echo "»Send Pm To All
"; echo "»Forum Categories
"; echo "»Forums
"; echo "»User groups
"; echo "»Add permissions
"; echo "»Change user info
"; echo "»Manage RSS Sources
"; echo "»Add Theme
"; echo "»Add Smilies
"; echo "»Add Avatar
"; echo "»Chatrooms
"; if($uid==1) { echo "»Clear Data
"; } }else{ echo "You are not an Owner"; } echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } /////////////////////////////////COMPACT INDEX else if($action=="compact") { $showicons = mysql_fetch_array(mysql_query("SELECT showicon FROM ibwf_users WHERE id='".$uid."'")); $showtime = mysql_fetch_array(mysql_query("SELECT showtime FROM ibwf_users WHERE id='".$uid."'")); $showshout = mysql_fetch_array(mysql_query("SELECT showshout FROM ibwf_users WHERE id='".$uid."'")); $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); if($showicons[0]=="1"){ addvisitor(); addonline(getuid_sid($sid),"Compact Main Page - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("FlareZone Compact",$pstyle); echo "

"; if($showtime[0]=="1"){ echo "".date("D d M y - H:i",time() )."
"; } $TimeZone="0"; ////Change the TimeZone accordingly! $New_Time = time() + ($TimeZone * 60 * 60); $show_date=date("D dS F, Y",$New_Time); $show_time=date("H:i",$New_Time); $Hour=date("G",$New_Time); echo "\"FlareZone\"/
"; echo "

"; $nick = getnick_sid($sid); if ($Hour <= 4) { echo "
Hello $nick you night owl!

"; } else if ($Hour <= 11) { echo "
Good morning $nick!

"; } else if ($Hour <= 12) { echo "
Enjoy your lunch $nick!

"; } else if ($Hour <= 17) { echo "
Good afternoon $nick!

"; } else if ($Hour <= 24) { echo "
Good Evening $nick!

"; } echo "

"; $fmsg = htmlspecialchars(getfmsg()); echo "Site Announcement
"; echo "$fmsg
"; echo "+++++++++++++++++
"; include("popups.php"); echo "
Reload
"; echo "

"; echo "
"; echo "
Menu

"; echo ""; /////inbox data $new_gm = getnewgml(getuid_sid($sid)); if($new_gm>0) { echo "»G-Mail(".$new_gm.")
"; } $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg==1) { echo "1. \"*\"/Inbox($umsg New Message)
"; } if($umsg>1) { echo "1. \"*\"/Inbox($umsg New Messages)
"; } if($umsg==0) { echo "1. \"*\"/Inbox($tmsg)
"; } $uid = getuid_sid($sid); $mybuds = getnbuds($uid); $onbuds = getonbuds($uid); echo "2. \"*\"/Buddies($onbuds|$mybuds)"; $reqs = getnreqs($uid); if($reqs>0) { echo ": $reqs"; } $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline")); echo "
2. \"*\"/Chatrooms($chs[0])
"; $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); echo "3. \"*\"/Clubs($chs[0])
"; echo "4. \"*\"/CPanel
"; echo "5. \"*\"/Site Stats
"; echo "6. \"*\"/Partners
"; echo "7. \"*\"/Site Stats
"; echo "
"; echo "
"; if($showshout[0]=="1"){ echo "
"; echo "
"; echo "
"; echo "
ShoutBox

"; echo ""; echo getshoutbox($sid); echo ""; echo "
"; } echo "
"; echo "
"; echo "
"; echo "
Online Stats

"; echo ""; echo "Members Online:
"; $memberonline = "0.Members: ".getnumonline()."
"; echo "$memberonline"; $timeout = time() - 180; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'")); echo "Staff Online:
"; echo "*.Staff:
".$noi[0]."
"; $timeout = time() - 180; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'")); echo "V.I.P's Online:
"; echo "#.V.I.P's:
".$noi[0]."
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "

"; if (isowner(getuid_sid($sid))) { echo "

"; echo "
Owner/Admins/Mods

"; echo "
»Owner CP
"; } if (isadmin(getuid_sid($sid))) { echo "»Admin CP
"; } if(ismod($uid)) { echo "»Mod R/L
"; echo "
I Would Apreciate It If Only Staff Click These Links

"; echo "
"; } echo "

"; echo "
"; echo "
"; echo "

"; echo "©FlareZone 2007 - 2023
"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"; echo "Original Script By Irishblaze(lavalair.net)
"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"; echo "Script Updates By FlareBoy
"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"; echo "

"; echo xhtmlfoot(); } /////////////////////////////////COMPACT ZONE else if($action=="compactzone") { addonline(getuid_sid($sid),"Compact Zone- xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Compact Zone!",$pstyle); echo "

"; include("popups.php"); echo "Compact Zone"; echo "

"; echo "

"; echo "1. \"*\"/Forums
"; echo "2. \"*\"/Fun/Games
"; echo "3. \"*\"/FlareZone Shop
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault")); echo "4. \"*\"/Downloads($noi[0])
"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery")); echo "5. \"*\"/User Gallery($noi[0])
"; echo "

"; echo "

"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; echo "

"; echo xhtmlfoot(); } /////////////////////////////////Terms of use else if($action=="terms") { $uid =getuid_sid($sid); if($uid>0) { addonline(getuid_sid($sid),"Terms of use - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Terms Of Use",$pstyle); } $pstyle = gettheme1("1"); echo xhtmlhead("Terms Of Use",$pstyle); echo "

"; echo "\"!\"/Posts containing racism, links to other sites, spamming, flooding, adult content, hacking will be deleted immediately, and the posters will get warned or banned
"; echo "\"!\"/chatting, discriminating, posting off topics, posting useless posts (smilies only or one word post), and free posting results to delete the posts, substracting plusses and banning in some cases
"; echo "\"!\"/Registering more than one nickname, could result to delete all your accounts
"; echo "\"!\"/Never give your account password to anyone, except in some extreme cases and the admins should be informed about it
"; echo "\"!\"/Faking your personal information (like age, sex, location etc..) just to gain access to hidden forums or any other reason could result on banning, or a warning at least
"; echo "\"!\"/Females harassment, and racism will results on banning for 7 days at least without a warning, and an IP-Ban if this behavior continued
"; echo "\"!\"/Bumping topics (keep posting in them by the author of the topic just to keep it in first page and not for a good reason) will cause these topics to be deleted and the penalty could vary between warning, substracting plusses, or even a ban
"; echo "\"!\"/You can only speak in english in forums, and all the chatrooms except (International, afrikaans and mad room)
"; echo "\"!\"/Please report any spams, this is the only thing that we want from you for our free services
"; echo "\"!\"/No smoking in public, next to the pregnant ladies, or next to babies hehe
"; echo "\"!\"/The most important rule is to have fun here and enjoy your stay ;)
"; echo "
Remeber, these rules were made for protecting you before protecting us, if you think they are a little restrictive then read our F.A.Qs or ask any online staff member(only if you logged in), Thank you so much
"; echo "

"; echo "

"; if($uid>0) { $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "\"*\"/"; echo "Home"; }else{ echo "\"*\"/"; echo "Home"; } echo "

"; echo xhtmlfoot(); } else{ /////////////////////////Main Page Here $pstyle = gettheme1("1"); echo xhtmlhead("FlareZone",$pstyle); echo "

"; echo ""; echo "\"*\"/
"; $fmsg = htmlspecialchars(getfmsg()); echo "Site Announcement
"; echo "$fmsg
"; echo "+++++++++++++++++
"; echo "Not registered yet?
"; echo ">>>>>>><<<<<<<
"; echo "Sign Up
"; echo " >>>>>>>><<<<<<<
"; echo "
"; echo "

"; echo "

"; echo "

"; echo "UserName:
"; echo "Password:
"; echo "
"; echo "
"; echo "

"; echo "

"; echo "

"; echo ""; echo " >>>>>>>>>>>>>>>>
"; echo "Terms Of Use
"; echo " >>>>>>>>>>>>>>>>
"; echo "Features
"; $onu = getnumonline() + 0; echo " >>>>>>>>>>>>>>>>
"; echo "Members Inside: $onu
"; echo " >>>>>>>>>>>>>>>>
"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users")); echo "
"; echo "

"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users")); echo ""; $siteage = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='9'")); $sage = time()-$siteage[0]; $stage = ceil($sage/(24*60*60)); echo "======================
"; echo "Site Statistics
"; echo "======================
"; echo "Registered Members: $norm[0]
"; echo "=--=--=--=--=--=--=--=
"; $memid = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_users ORDER BY regdate DESC LIMIT 0,1")); echo "The Newest Member is: $memid[1]

"; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); echo "=--=--=--=--=--=--=--=
"; echo "Most online: $mols[1] Members on $mols[0]
"; $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); echo "=--=--=--=--=--=--=--=
"; echo "
Most online(today only): $mols[0] Members at $mols[1]
"; $tm24 = time() - (24*60*60) ; $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$tm24."'")); echo mysql_error(); echo "=--=--=--=--=--=--=--=
"; echo "
Active users today $aut[0]
"; $notc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics")); $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts")); echo "=--=--=--=--=--=--=--=
"; echo "Number of Topics: $notc[0]
"; echo "=--=--=--=--=--=--=--=
"; echo "Number of Posts: $nops[0]
"; $nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private")); echo "=--=--=--=--=--=--=--=
"; echo "Number of PMs: $nopm[0]
"; $nopm = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='Counter'")); echo "=--=--=--=--=--=--=--=
"; echo "Counter: $nopm[0]

"; echo "======================
"; echo "©FlareZone 2007 - 2023
"; echo "======================
"; echo "======================
"; echo "Lavalair
"; echo "======================
"; echo "

"; echo xhtmlfoot(); } ?>